package cn.maihe.elg.operation.centers.quanzhou.dto;

import cn.maihe.elg.operation.model.dto.BaseResp;
import lombok.Getter;
import lombok.Setter;

/**
 * @Description 泉州中心响应baseDTO
 * @Author xxx
 * @Date 2025/08/31
 */
@Getter
@Setter
public class QuanzhouBaseRespDTO extends BaseResp {
    
    /**
     * 响应码：0失败，1成功
     */
    private String code;
    
    /**
     * 响应消息
     */
    private String message;
    
    /**
     * 业务数据
     */
    private Object data;
    
    public QuanzhouBaseRespDTO() {
    }
    
    public QuanzhouBaseRespDTO(String code, String message) {
        this.code = code;
        this.message = message;
    }
    
    public QuanzhouBaseRespDTO(String code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
    
    public static QuanzhouBaseRespDTO success(String message) {
        return new QuanzhouBaseRespDTO("1", message);
    }
    
    public static QuanzhouBaseRespDTO success(String message, Object data) {
        return new QuanzhouBaseRespDTO("1", message, data);
    }
    
    public static QuanzhouBaseRespDTO failure(String message) {
        return new QuanzhouBaseRespDTO("0", message);
    }
}